import React, { Component } from "react";

export default class App extends Component {
  state = {
    todoList: ["吃饭"],
  };
  render() {
    return (
      <div>
        {this.state.todoList.length === 0 ? (
          <span>"您当前暂无代办事项"</span>
        ) : (
          <span>"您当前有{this.state.todoList.length}条待办事项"</span>
        )}
      </div>
    );
  }
}
